﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace olierFrm.Extensions.DataBase
{
    public static class DataObject
    {
        #region 主要针对DataObject
        /// <summary>
        /// 增加UpdateFlag，主要针对DataObject
        /// </summary>
        /// <param name="dt"></param>
        public static void AddUpdateFlag(this DataTable dt)
        {
            dt.Columns.Add(new DataColumn("UpdateFlag", Type.GetType("System.String")));
        }

        /// <summary>
        /// 获取UpdateFlag字段的名称，主要针对DataObject
        /// </summary>
        /// <param name="dt"></param>
        /// <returns></returns>
        public static string GetUpdateFlagFildName(this DataTable dt)
        {
            return "UpdateFlag";
        }
        #endregion
    }
}
